package visitor.example;

/**
 * @author cheng:
 * @date 2019/4/27 14:00
 */
public class Marrige extends Action{
    @Override
    public void getManConclusion(Man manElement) {
        System.out.println(manElement.getClass().getSimpleName() + " " + this.getClass().getSimpleName() + "时，感慨道：恋爱游戏终结时，‘有妻徒刑’遥无期。");
    }

    @Override
    public void getWoManConclusion(WoMan manElement) {
        System.out.println(manElement.getClass().getSimpleName() + " " + this.getClass().getSimpleName() + "时，欣慰日：爱情长跑路漫漫，婚姻保险保平安。");
    }
}
